﻿namespace W7StyleSample
{
   #region

   using W7StyleSample.Model;

   #endregion

   /// <summary>
   /// Interaction logic for MainWindow.xaml
   /// </summary>
   public partial class MainWindow
   {
      #region Constructors and Destructors

      public MainWindow()
      {
         var firstNode = new Node { Name = "element" };
         var first1 = new Node { Name = "element1" };
         var first2 = new Node { Name = "element2" };
         var first11 = new Node { Name = "element11 (Drag Allowed)", AllowDrag = true };
         var first12 = new Node { Name = "element12" };
         var first13 = new Node { Name = "element13 (Drop Allowed)", AllowDrop = true };
         var first14 = new Node { Name = "element14" };
         var first15 = new Node { Name = "element15" };
         var first131 = new Node { Name = "element131" };
         var first132 = new Node { Name = "element132" };

         firstNode.Children.Add(first1);
         firstNode.Children.Add(first2);
         first1.Children.Add(first11);
         first1.Children.Add(first12);
         first1.Children.Add(first13);
         first1.Children.Add(first14);
         first1.Children.Add(first15);
         first13.Children.Add(first131);
         first13.Children.Add(first132);

         DataContext = firstNode;

         InitializeComponent();
      }

      #endregion
   }
}